package com.hp.configuration;

import com.hp.netty.MyWebSocketFrameHandler;
import com.hp.netty.NewsServer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author cksh
 * @create 2021-06-21 17:02
 */
@Configuration
public class MyNettyConfiguration {
    @Bean
    public NewsServer newsServer() {
        return new NewsServer();
    }

    @Bean
    public MyWebSocketFrameHandler myWebSocketFrameHandler() {
        return new MyWebSocketFrameHandler();
    }
}
